require 'tk'
root = TkRoot.new do
	title ="Hello world!"
	geometry "1000x400"
end

frame1 = TkFrame.new(root) do
	background 'red'
	width 100
	height 100
	pack :ipadx => 10, :side=>'left', :fill=>'y'
end
frame2 = TkFrame.new(root) do
	width 100
	height 100
	background 'green'
	pack :ipadx=>10, :side=>'right', :fill=>'y'
end

TkText.new(frame1) do
	height 100
	width 100
	background 'white'
	wrap 'word'
	insert "end", "Type some text"
	pack('side'=>'top', 'padx'=>10, 'pady'=>10)
end

TkText.new(frame2) do
	height 100
	width 100
	background 'white'
	wrap 'word'
	insert "end", "Type some text"
	pack('side'=>'top', 'padx'=>10, 'pady'=>10)
end

Tk.mainloop

